
#ifndef HUMANROLE_H
#define HUMANROLE_H

#include <BImage>
#include <BScript>
#include <BGraphicItem>

using namespace BWE;

class HumanRole : public BGraphicItem
{
public:
	HumanRole(BGraphicItem* parent = 0);
	~HumanRole();

	void setScript(BScript* script);
	BScript* script();

	void setImage(BImage* image);
	const BImage* image() const;
	BImage* image();

protected:
	virtual void paint(BPainter& painter);

	virtual void updateEvent(const BEvent& event);

private:
	BScriptHolder		_script;
	BImageHolder		_image;
};

#endif
